package org.jeecg.modules.procurement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.AutoRecordLog;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 材料请购单明细
 * @Author: jeecg-boot
 * @Date:   2024-06-05
 * @Version: V1.0
 */
@ApiModel(value="buss_material_application_detail对象", description="材料请购单明细")
@Data
@TableName("buss_material_application_detail")
@AutoRecordLog(value = 1,existParent = true,parentFiled="applicationId",parentTable="buss_material_application")
public class BussMaterialApplicationDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**材料标号*/
	@Excel(name = "材料标号", width = 15)
    @ApiModelProperty(value = "材料标号")
    private String materialCode;
	/**材料名称*/
	@Excel(name = "材料名称", width = 15)
    @ApiModelProperty(value = "材料名称")
    private String materialName;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String spec;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    @Dict(dicCode = "ji_unit")
    private String unit;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.math.BigDecimal num;
	/**到货日期*/
	@Excel(name = "到货日期", width = 15)
    @ApiModelProperty(value = "到货日期")
    private String arrivalDate;
	/**用途*/
	@Excel(name = "用途", width = 15)
    @ApiModelProperty(value = "用途")
    private String useDesc;
	/**申请id*/
    @ApiModelProperty(value = "申请id")
    private String applicationId;

    @ApiModelProperty(value = "物料id")
    private String materialId;

    @ApiModelProperty(value = "申请单编号")
    private String applicationCode;

    @Excel(name = "已来料数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.math.BigDecimal arrayNum;
}
